Page({
  data: {
    id:null,
    customerinfo: {},
    currentTab: 1,
    option: "编辑",
  },
  onLoad(e) {
    console.log(e);
    this.setData({id:e.id})
    this.getInfo()
  },
  getInfo(){
    var _this = this
    getApp().req({
      url: "/customer/"+this.data.id,
      cb(res){
        console.log(res)
        _this.setData({customerinfo:res.data})
      }
    })
  },
  swiperTab(e) {
    this.setData({currentTab:e.target.dataset.index})
  },
    option() {
      console.log(this.data.id)
        dd.navigateTo({
          url:"../crmchanneledit/crmchanneledit?id="+this.data.id
     
    })

  }
});
